package com.example.project.projectspringcloud.dao.order;

import com.example.project.projectspringcloud.dao.BaseMapper;
import com.example.project.projectspringcloud.entity.order.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 用户订单Mapper
 */
@Mapper
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 更新订单状态
     *
     * @param orderId
     * @param status
     * @return
     */
    int status(@Param("orderId") Integer orderId, @Param("status") Integer status);
}